Skip to content

feat: add JSON schema utility functions and theorems - #2

Merged
DavidMazarro merged 3 commits into
mainfrom
DM/various-utilities
Mar 11, 2026
Merged

DavidMazarro merged 3 commits into
mainfrom
DM/various-utilities

Conversation

@DavidMazarro

Copy link
Copy Markdown
Contributor

Add generic JSON Schema helper functions for detecting, wrapping, and unwrapping top-level array schemas, along with correctness theorems verified in Lean.

Summary

  • Add schemaIsTopLevelArray, wrapArraySchema, and unwrapArrayResult utility functions for manipulating JSON Schema documents as Lean.Json values
  • Add correctness theorems proving wrapArraySchema always produces a non-array schema and unwrapArrayResult round-trips correctly
  • Add #guard-based tests covering all utility functions

@DavidMazarro DavidMazarro added the enhancement New feature or request label Mar 11, 2026
@DavidMazarro DavidMazarro self-assigned this Mar 11, 2026
@DavidMazarro
DavidMazarro merged commit b98a2d5 into main Mar 11, 2026
1 check passed
@DavidMazarro
DavidMazarro deleted the DM/various-utilities branch March 11, 2026 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants